Rather than returning the parent container of the slider, which presents
itself as the slider, return the parent of the slider container.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6686
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2762>
});
box.add_child(sliderBin);
- sliderBin.set_accessible(this.slider.get_accessible());
+ // Make the slider bin transparent for a11y
+ const sliderAccessible = this.slider.get_accessible();
+ sliderAccessible.set_parent(sliderBin.get_parent().get_accessible());
+ sliderBin.set_accessible(sliderAccessible);
sliderBin.connect('event', (bin, event) => this.slider.event(event, false));
this._menuButton = new St.Button({